﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;

namespace ScreenShark.Configuration
{
    public static class ApplicationCustomFoldersManager
    {
        static ApplicationCustomFoldersManager()
        {
            ApplicationName = Assembly.GetEntryAssembly().GetName().Name;
        }

        public static string ApplicationName 
        {
            get;
            set;
        }

        public static string GetAppDataFolder()
        {
            string appDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
            string folder = Path.Combine(appDataFolder, ApplicationName);
            if (!Directory.Exists(folder))
            {
                Directory.CreateDirectory(folder);
            }

            return folder;
        }
    }
}
